export default [
    {
        path: '/login',
        component: '@/pages/Login',
        layout: false,
    },
    {
        path: '/',
        component: '@/pages/Layout',
        menu: {
            flatMenu: true,
        },
        routes: [{
            path: '/',
            redirect: '/index',
        },
        {
            path: '/index',
            component: '@/pages/Index',
            // 不展示顶栏
            headerRender: false,
            // 不展示页脚
            footerRender: false,
            // 不展示菜单
            menuRender: false,
            // 不展示菜单顶栏
            menuHeaderRender: false,
        }, {
            name: '首页',
            key: 'home',
            icon: 'HomeOutlined',
            path: '/home',
            component: '@/pages/Home',
        }, {
            name: '发布',
            key: 'publish',
            icon: 'HomeOutlined',
            path: '/publish',
            routes: [{
                name: '推广信息',
                icon: "FlagOutlined",
                path: 'defaultRelease',
                routes: [{
                    name: '货物',
                    key: 'releasegoods',
                    path: 'releasegoods',
                    component: '@/pages/release/goods/form',
                    state: { type: 1 }
                }, {
                    name: '运输',
                    key: 'releasetransport',
                    path: 'releasetransport',
                    component: '@/pages/release/transport/form',
                    state: { type: 1 }
                }, {
                    name: '跨境货代',
                    key: 'releasecrossborder',
                    path: 'releasecrossborder',
                    component: '@/pages/release/crossborder/form',
                    state: { type: 1 }
                }, {
                    name: '专业代办',
                    key: 'releaseprofessional',
                    path: 'releaseprofessional',
                    component: '@/pages/release/professional/form',
                    state: { type: 1 }
                }, {
                    name: '生活广告',
                    key: 'releaselifead',
                    path: 'releaselifead',
                    component: '@/pages/release/lifead/form',
                    state: { type: 1 },
                    hideInMenu: true
                }, {
                    name: '中俄新闻',
                    key: 'releasenews',
                    path: 'releasenews',
                    component: '@/pages/release/news/form',
                    state: { type: 1 },
                    hideInMenu: true
                }, {
                    name: '曝光台',
                    key: 'releaseexposure',
                    path: 'releaseexposure',
                    component: '@/pages/release/exposure/form',
                    state: { type: 1 },
                    hideInMenu: true
                }]
            }, {
                name: '竞标信息',
                icon: "MonitorOutlined",
                path: 'compRelease',
                access: "isJingPaiPage",
                routes: [{
                    name: '货物',
                    key: 'releasegoods',
                    path: 'releasegoods',
                    component: '@/pages/release/goods/form',
                    state: { type: 2 }
                }, {
                    name: '运输',
                    key: 'releasetransport',
                    path: 'releasetransport',
                    component: '@/pages/release/transport/form',
                    state: { type: 2 }
                }, {
                    name: '跨境货代',
                    key: 'releasecrossborder',
                    path: 'releasecrossborder',
                    component: '@/pages/release/crossborder/form',
                    state: { type: 2 }
                }, {
                    name: '专业代办',
                    key: 'releaseprofessional',
                    path: 'releaseprofessional',
                    component: '@/pages/release/professional/form',
                    state: { type: 2 }
                }, {
                    name: '生活广告',
                    key: 'releaselifead',
                    path: 'releaselifead',
                    component: '@/pages/release/lifead/form',
                    state: { type: 2 },
                    hideInMenu: true
                }, {
                    name: '中俄新闻',
                    key: 'releasenews',
                    path: 'releasenews',
                    component: '@/pages/release/news/form',
                    state: { type: 2 },
                    hideInMenu: true
                }, {
                    name: '曝光台',
                    key: 'releaseexposure',
                    path: 'releaseexposure',
                    component: '@/pages/release/exposure/form',
                    state: { type: 2 },
                    hideInMenu: true
                }]
            }]
        }, {
            name: '信息中心',
            key: 'releaseManage',
            icon: "BarsOutlined",
            path: '/releaseManage',
            routes: [{
                name: '推广信息',
                icon: "FlagOutlined",
                path: 'defaultRelease',
                routes: [{
                    name: '货物',
                    path: 'goodsPromotion',
                    component: '@/pages/infoList/goodsPromotion'

                }, {
                    name: '运输',
                    path: 'transport',
                    component: '@/pages/infoList/transport',
                }, {
                    name: '跨境货代',
                    path: 'freightForwarder',
                    component: '@/pages/infoList/freightForwarder',
                }, {
                    name: '资源库',
                    //隐藏掉 功能重复
                    hideInMenu: true,
                    path: 'repository',
                    component: '@/pages/infoList/repository',
                }, {
                    name: '专业代办',
                    path: 'agencyList',
                    component: '@/pages/infoList/agencyList',
                }, {
                    name: '生活广告',
                    path: 'lifeadvertisingList',
                    component: '@/pages/infoList/lifeadvertisingList',
                    hideInMenu: true
                }, {
                    name: '中俄新闻',
                    path: 'candrNewsList',
                    component: '@/pages/infoList/candrNewsList',
                    hideInMenu: true
                }, {
                    name: '曝光台',
                    path: 'exposureTableList',
                    component: '@/pages/infoList/exposureTableList',
                    state: { type: 2 },
                    hideInMenu: true
                }]
            }, {
                name: '竞标信息',
                icon: "MonitorOutlined",
                path: 'compRelease',
                access: "isJingPaiPage",
                routes: [{
                    name: '货物',
                    path: 'goodsPromotion',
                    component: '@/pages/infoList/goodsPromotion',
                    state: { type: 2 }
                }, {
                    name: '运输',
                    path: 'transport',
                    component: '@/pages/infoList/transport',
                    state: { type: 2 }
                }, {
                    name: '跨境货代',
                    path: 'freightForwarder',
                    component: '@/pages/infoList/freightForwarder',
                    state: { type: 2 }
                }, {
                    name: '资源库',
                    //隐藏掉 功能重复
                    hideInMenu: true,
                    path: 'repository',
                    component: '@/pages/infoList/repository',
                    state: { type: 2 }
                }, {
                    name: '专业代办',
                    path: 'agencyList',
                    component: '@/pages/infoList/agencyList',
                    state: { type: 2 }
                }, {
                    name: '生活广告',
                    path: 'lifeadvertisingList',
                    component: '@/pages/infoList/lifeadvertisingList',
                    state: { type: 2 },
                    hideInMenu: true
                }, {
                    name: '中俄新闻',
                    path: 'candrNewsList',
                    component: '@/pages/infoList/candrNewsList',
                    state: { type: 2 },
                    hideInMenu: true
                }, {
                    name: '曝光台',
                    path: 'exposureTableList',
                    component: '@/pages/infoList/exposureTableList',
                    state: { type: 2 },
                    hideInMenu: true
                }]
            }]
        }, {
            name: '订单管理',
            icon: "AccountBookOutlined",
            key: 'order',
            path: '/order',
            component: '@/pages/Home/order/order',
        }, {
            name: '消息通知',
            key: 'message',
            icon: "BellOutlined",
            path: '/message',
            routes: [{
                name: '消息列表',
                icon: "MessageOutlined",
                path: 'im',
                component: '@/pages/message/im',
            }, {
                name: '系统通知',
                icon: "BulbOutlined",
                path: 'systemNotification',
                component: '@/pages/message/systemNotification/systemNotification',

            }, {
                name: '交易通知',
                icon: "PushpinOutlined",
                path: 'tranMsg',
                component: '@/pages/message/transactionNotice/transactionNotice',
            }]
        }, {
            name: '个人中心',
            key: 'me',
            icon: "MehOutlined",
            path: '/me',
            routes: [{
                name: '我的评价',
                icon: "StarOutlined",
                path: 'critic',
                component: '@/pages/user/critic/critic',
            }, {
                name: '图标认证',
                path: 'icoApprove',
                icon: "CrownOutlined",
                component: '@/pages/user/icoApprove/icoApprove',
            }, {
                name: '广告招商',
                path: 'attractInvestment',
                icon: "ShopOutlined",
                component: '@/pages/user/attractInvestment/attractInvestment',
            }, {
                name: '资料库',
                access: "isZiYuanKuPage",
                icon: "TeamOutlined",
                path: 'freightForwarder',
                component: '@/pages/infoList/freightForwarder',
            }]
        }, {
            name: '实名认证',
            key: 'AuthRealName',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/AuthRealName',
            component: '@/pages/user/AuthRealName/AuthRealName',
        }, {
            name: '详情页',
            key: 'detail',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/detail',
            component: '@/pages/Home/detail/detail',
        }, {
            name: '参与竞标',
            key: 'buildOrder',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/buildOrder',
            component: '@/pages/order/process/buildOrder',
        }, {
            name: '货物',
            key: 'releasegoods',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/releasegoods',
            component: '@/pages/release/goods/form',
        }, {
            name: '运输',
            key: 'releasetransport',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/releasetransport',
            component: '@/pages/release/transport/form',
        }, {
            name: '跨境货代',
            key: 'releasecrossborder',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/releasecrossborder',
            component: '@/pages/release/crossborder/form',
        }, {
            name: '专业代办',
            key: 'releaseprofessional',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/releaseprofessional',
            component: '@/pages/release/professional/form',
        }, {
            name: '生活广告',
            key: 'releaselifead',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/releaselifead',
            component: '@/pages/release/lifead/form',
        }, {
            name: '中俄新闻',
            key: 'releasenews',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/releasenews',
            component: '@/pages/release/news/form',
        }, {
            name: '曝光台',
            key: 'releaseexposure',
            // 隐藏自己和子菜单
            hideInMenu: true,
            path: '/releaseexposure',
            component: '@/pages/release/exposure/form',
        }, {
            name: '我的积分',
            path: 'myIntegral',
            // 隐藏自己和子菜单
            hideInMenu: true,
            icon: "SolutionOutlined",
            component: '@/pages/user/myIntegral/myIntegral',
        }, {
            name: '个人主页',
            icon: "ReadOutlined",
            path: 'myHome',
            // 隐藏自己和子菜单
            hideInMenu: true,
            component: '@/pages/user/homePage/homePage',
        }, {
            name: '修改资料',
            path: 'personal',
            // 隐藏自己和子菜单
            hideInMenu: true,
            component: '@/pages/user/personal/personal',
        }, {
            name: '订单详情',
            path: 'published',
            // 隐藏自己和子菜单
            hideInMenu: true,
            component: '@/pages/order/published/published',
        }, {
            name: '合作信息详情',
            path: 'cooperate',
            // 隐藏自己和子菜单
            hideInMenu: true,
            component: '@/pages/order/process/cooperate',
        }, {
            name: '申请售后',
            path: 'afterSale',
            // 隐藏自己和子菜单
            hideInMenu: true,
            component: '@/pages/order/afterSale/afterSale',
        }, {
            name: '评价',
            path: 'takepart',
            // 隐藏自己和子菜单
            hideInMenu: true,
            component: '@/pages/order/evaluate/takepart',
        }, {
            name: '评价',
            path: 'evaluation',
            // 隐藏自己和子菜单
            hideInMenu: true,
            component: '@/pages/order/evaluation/evaluation',
        },]
    },
    {
        path: '/403',
        name: '403',
        component: '@/pages/error/Error403',
        layout: false,
    },
    {
        path: '/504',
        name: '504',
        component: '@/pages/error/Error504',
        layout: false,
    },
    {
        path: '/*',
        name: '404',
        component: '@/pages/error/Error404',
        layout: false,
    }
]
